import 'package:enter_prise_web/page/index/index_binding.dart';
import 'package:enter_prise_web/page/index/index_page.dart';
import 'package:enter_prise_web/page/main/main_page.dart';
import 'package:enter_prise_web/page/more/more.dart';
import 'package:enter_prise_web/page/settings/settings.dart';
import 'package:enter_prise_web/page/work/work_page.dart';
import 'package:enter_prise_web/splash_page.dart';
import 'package:get/get.dart';

import '../page/staff/staff.dart';

class AppPages {
  static List<GetPage> pages = [
    GetPage(
        name: Routes.index,
        page: () => const IndexPage(),
        binding: IndexBinding()),
    GetPage(
      name: Routes.settings,
      page: () => const Settings(),
    ),
    GetPage(name: Routes.staff, page: () => const Staff()),
    GetPage(name: Routes.more, page: () => const More()),
    GetPage(name: Routes.main, page: () => MainPage()),
    GetPage(
      name: Routes.work,
      page: () => const WorkPage(),
    ),
    GetPage(
        name: Routes.splash,
        page: () => const SplashPage(),
        binding: IndexBinding()),
  ];
}

class Routes {
  static const String index = '/index';
  static const String more = '/more';
  static const String staff = '/staff';
  static const String settings = '/settings';
  static const String group = '/group';
  static const String main = '/main';
  static const String work = '/workRecord';
  static const String splash = '/splash';
}
